<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="follow, index" />
<meta name="author" content="iune co." />
<meta name="description"
	content="IUNE有最好的库存管理SaaS软件。以更快更高的准确度，跟进实时数据的访问和库存移动。" />
<meta name="keywords"
	content="库存, 存货管理, 库存管理, 仓库管理, 云ERP, 云逸ERP, 中小型企业云ERP, SaaS ERP软件/系统" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>

<style type="text/css">
td {
	padding: 0px;
	width: 100px;
}
</style>

</head>
<body>



		<div class="container-fluid" data-ng-controller="fileItemListCtrl as Model">

			<div class="row">
				<div class="col-sm-12">
					<nav class="nav">
					<ul class="pagination navbar-left buttonBar">
						<li>
							<div class="btn-group" role="toolbar">
								<shiro:hasPermission name="/inventory/fileItem/list:create">
								<button type="button" class="btn btn-info " data-ng-click="Model.add()">
									<span class="glyphicon glyphicon-plus"></span> 新建
								</button>
								</shiro:hasPermission>
								<shiro:hasPermission name="/inventory/fileItem/list:save">
								<button type="button" class="btn btn-default" data-ng-disabled="Model.dataList.getCurrentIndex()==null" data-ng-click="Model.edit()">
									<span class="glyphicon glyphicon-edit"></span> 修改
								</button>
								</shiro:hasPermission>
								<shiro:hasPermission name="/inventory/fileItem/list:delete">
								<button type="button" class="btn btn-default" data-ng-disabled="Model.dataList.getCurrentIndex()==null" data-ng-click="Model.remove()">
									<span class="glyphicon glyphicon-trash"></span> 删除
								</button>
								</shiro:hasPermission>
								<shiro:hasPermission name="/inventory/fileItem/list:query">
								<button type="button" class="btn btn-default" data-ng-click="Model.refresh()">
									<span class="glyphicon glyphicon-refresh"></span> 刷新
								</button>
								</shiro:hasPermission>
								
								<!-- Split button -->
								<div class="btn-group" data-ng-if="Model.dataList.getCurrentIndex()!=null">
									<button type="button" data-ng-click="Model.alterStorage()" class="btn btn-danger">
										<span class="glyphicon glyphicon-edit"></span> 修改仓库
									</button>
									<button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
								    	<span class="caret"></span>
								    	<span class="sr-only">Toggle Dropdown</span>
									</button>
									<ul class="dropdown-menu">
										<li>
											<a href="" data-ng-click="Model.describe()">
												<span class="glyphicon glyphicon-edit"></span> 商品详情
											</a>
										</li>
										<li>
											<a href="" data-ng-click="Model.toHtml()">
												<span class="glyphicon glyphicon-open"></span> 发布
											</a>
										</li>
										<li role="separator" class="divider"></li>
										<li>
											<a href="" data-ng-click="Model.importItem()">
												<span class="glyphicon glyphicon-cloud-download"></span> 云导入
											</a>
										</li>
									</ul>
								</div>
								
								<button type="button" class="btn btn-primary" data-ng-show="Model.dataList.rows[Model.dataList.getCurrentIndex()].configType.value==1" data-ng-click="Model.itemProper()">
									<span class="glyphicon glyphicon-edit"></span> 维护物料特性
								</button>
								<button type="button" class="btn btn-warning" data-ng-hide="Model.dataList.rows[Model.dataList.getCurrentIndex()].fParent.value==''" data-ng-click="Model.itemProperties()">
									<span class="glyphicon glyphicon-edit"></span> 配置特征值
								</button>

							</div>
						</li>
					</ul>
					<shiro:hasPermission name="/inventory/fileItem/list:query">
						<query-like data="Model.dataList" place-holder="模糊查询..."></query-like>
					</shiro:hasPermission>

				</nav>
				
				</div>
			</div>
			
			<div class="row">
				<div class="col-sm-12">

					<div class="table-responsive">
						<table class="table table-hover table-condensed" style="margin:0px;">
							<thead>
								<tr>
									<th colspan="99"  style="padding:0px;">
									</th>
								</tr>


								<tr>
									<th>#</th>
									<th><input type="checkbox" data-ng-model="checkboxValue" data-ng-click="Model.checkboxClick($event)"></th>
									<th hidden="true">状态</th>
									<th hidden="true">fID</th>
									<th>有效</th>
									<th hidden="hidden" title="可配置物料">可配置</th>
									<th hidden="true">子系统</th>
									<th hidden="true">单据类型</th>
									<th hidden="true">单据类型</th>
									<th hidden="hidden">日期</th>
									<th>物料编码</th>
									<th>名称</th>
									<th>规格型号</th>
									<th hidden="hidden">基本计量单位代码</th>
									<th>单位</th>
									<th hidden="true">来源属性</th>
									<th hidden="hidden">仓库代码</th>
									<th>库存地</th>
									<th>排序号</th>
									<th>条码</th>
									<th>备注</th>
									<th hidden="true">创建者编码</th>
									<th hidden="true">创建者</th>
									<th hidden="true">创建时间</th>
									<th hidden="true">创建者id</th>
									<th hidden="true">公司id</th>
									<th hidden="true">公司</th>
								</tr>
							</thead>
							<tbody>
								<tr data-ng-show="row.userdata.recordState!='delete'"
									data-ng-class="{'active':Model.dataList.getCurrentIndex()==Model.dataList.rows.indexOf(row)}"
									data-ng-style="rowStyle(row)"
									data-ng-click="Model.dataList.onRowClick(row,$event);Model.gridRowClick({'rowIndex':Model.dataList.rows.indexOf(row),'rowID':row.fID.value})"
									data-ng-dblclick="Model.dataList.onRowDblclick(row,$event);Model.gridRowDblClick({'rowIndex':Model.dataList.rows.indexOf(row),'rowID':row.fID.value})" 
									data-ng-repeat="row in Model.dataList.rows">
									
									<td style="width: 10px;">
										<span data-ng-show="Model.dataList.getCurrentIndex()==Model.dataList.rows.indexOf(row)" class="glyphicon glyphicon-hand-right" aria-hidden="true"></span>
										<span data-ng-hide="Model.dataList.getCurrentIndex()==Model.dataList.rows.indexOf(row)">{{Model.dataList.rows.indexOf(row)+1}}</span>
									</td>
										
									<td style="width: 50px;"><input type="checkbox" data-ng-model="row.userdata.checked"></td>
									<td style="width: 50px;" hidden="hidden" data-ng-bind="row.userdata.recordState"></td>
									<td style="width: 200px;" hidden="hidden"><span data-ng-bind="row.fID.value"></span></td>
									<td style="width: 50px;"><span data-ng-show="row.status.value=='open'" class="glyphicon glyphicon-ok" aria-hidden="true"></span></td>
									<td style="width: 70px;" hidden="hidden"><span data-ng-show="row.configType.value==1" class="glyphicon glyphicon-ok" aria-hidden="true"></span></td>
									<td style="width: 100px;" hidden="hidden"><span data-ng-bind="row.systemCode.value"></span></td>
									<td style="width: 100px;" hidden="hidden"><span data-ng-bind="row.billType.value"></span></td>
									<td style="width: 100px;" hidden="hidden"><span data-ng-bind="row.billTypeName.value"></span></td>
									<td style="width: 110px;" hidden="hidden"><span data-ng-bind="row.orderDate.value"></span></td>
									<td style="width: 100px;"><span data-ng-bind="row.itemNo.value"></span></td>
									<td style="width: 150px;"><span data-ng-bind="row.itemName.value"></span></td>
									<td style="width: 150px;"><span data-ng-bind="row.itemProperty.value"></span></td>
									<td style="width: 100px;" hidden="hidden"><span data-ng-bind="row.unitCode.value"></span></td>
									<td style="width: 60px;"><span data-ng-bind="row.unitName.value"></span></td>
									<td style="width: 100px;" hidden="true"><span data-ng-bind="row.processLabel.value"></span></td>
									<td style="width: 100px;" hidden="hidden"><span data-ng-bind="row.storageNo.value"></span></td>
									<td style="width: 150px;"><span data-ng-bind="row.floorNo.value"></span></td>
									<td style="width: 100px;" ><span data-ng-bind="row.sortNo.value"></span></td>
									<td style="width: 100px;" ><span data-ng-bind="row.barcode.value"></span></td>
									<td style="width: 200px;"><span data-ng-bind="row.comments.value"></span></td>
									<td style="width: 100px;" hidden="hidden"><span data-ng-bind="row.cUsercode.value"></span></td>
									<td style="width: 100px;" hidden="hidden"><span data-ng-bind="row.cUsername.value"></span></td>
									<td style="width: 200px;" hidden="hidden"><span data-ng-bind="row.cDatetime.value"></span></td>
									<td style="width: 100px;" hidden="hidden"><span data-ng-bind="row.userId.value"></span></td>
									<td style="width: 100px;" hidden="hidden"><span data-ng-bind="row.enterpriseNo.value"></span></td>
									<td style="width: 200px;" hidden="hidden"><span data-ng-bind="row.enterpriseName.value"></span></td>

								</tr>

							</tbody>

							<tfoot>
								<tr>
									<th colspan="99"  style="padding:0px;">
									</th>
								</tr>
							</tfoot>

						</table>
					</div>


				</div>

			</div>

		<!-- 分页组件 -->
		<div class="row">
			<div class="col-sm-12">

				<pag-ination data="Model.dataList" first-text="首页"
					previous-text="上一页" next-text="下一页" last-text="末页"></pag-ination>

			</div>
		</div>


		</div>
<br>




</body>

</html>

